using UnityEngine;
using QFramework;

namespace QFramework.Pacman
{
	public partial class UIMenu : ViewController
	{
		void Start()
		{
			// Code Here
			Play.onClick.AddListener(() =>
			{
				Application.LoadLevel("game");
			});
			
			
			HighScores.onClick.AddListener(() =>
			{
				Application.LoadLevel("scores");

			});
			
			SourceCode.onClick.AddListener(() =>
			{
				Application.OpenURL("https://gitee.com/liangxiegame/Pacman");

			});
			
			Credits.onClick.AddListener(() =>
			{
				Application.LoadLevel("credits");
			});
			
			Exit.onClick.AddListener(() =>
			{
			Application.Quit();

#if UNITY_EDITOR
			UnityEditor.EditorApplication.isPlaying = false;
#endif
			});
		}
	}
}
